@import './reset.less';
@import './constant.less';

:root {
  font-size: 13.3333vmin;
}

@media (min-width: 750px) {
  :root {
    font-size: 100px;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#root,
#anim-wrap {
  height: 100%;
  background:#F7F8F9;
  width: 100%;
  // background:transparent;

}

body {
  font-size: 28px !important;
}

input,
button,
textarea {
  font-size: 28px;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

i {
  font-style: normal;
}

.fade-enter {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

.fade-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: 400ms linear;
}
.item-exit {
  display: none !important;
}
.item-exit-active {
  display: none !important;
}

// 规格进退场动画
.spec_foot_modal {
  &-enter {
    opacity: 0;
    transform: translateY(100%);
  }
  &-enter-active {
    opacity: 1;
    transform: translateY(0%);
    transition: opacity 300ms, transform 300ms;
  }
  &-exit {
    opacity: 1;
  }
  &-exit-active {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 300ms, transform 300ms;
  }
}

// 這地方是動態加的需要!important
.nav-active {
  position: relative;
  color: @color_theme!important;
  background: #fff;
  // border-left: 6px solid @color_theme;
  &::before {
    position: absolute;
    content: '';
    left: 0;
    height: 35px;
    width: 5px;
    top: 50%!important;
    transform: translate(0, -50%)!important;
    background: linear-gradient(to right, #FFC900, #FFB300)!important;
  }
}

// 404
.unfind {
  height: 100%;
  padding: 200px 60px 0;
  .icon {
    display: block;
    width: 200px;
    height: 200px;
    background: url('~@/assets/images/404.png') center no-repeat;
    background-size: 200px auto;
    margin-left: -26px;
  }
  h3 {
    font-size: 60px;
    margin: 60px 0 10px;
  }
  .tips {
    color: #999999;
    padding-left: 36px;
    line-height: 60px;
  }
  button {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 160px;
    font-size: 20px;
    height: 60px;
    color: #fff;
    background: linear-gradient(to right, #FFC900, #FFB300);
    border: 1px solid #FFB300;
    border-radius: 8px;
  }
}

.hide_slide_box {
  overflow: hidden;
  transition: 0.5s;
  transition-property: height, opacity;
}

// loading
.async_loading_wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  border-radius: 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #fff;
  width: 200px;
  padding: 30px 0;
  img {
    width: 80px;
    overflow: hidden;
  }
  .loading-text {
    margin-top: 20px;
  }
  >div {
    position: relative;
    height: 80px;
    width: 80px;
    .food_icon {
      display: block;
      width: 88%;
      height: 88%;
      background: url('~@/assets/images/food_icon.png') center no-repeat;
      background-size: 80% auto;
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: -1;
      transform: translate(-50%, -50%);
    }
  }
 
}


.pictureSpin {
  animation: picSpin 1.2s linear infinite;
  border: 0 !important;
  box-shadow: none !important;
}

@keyframes picSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


//orderdetail-ordertstatus
.order_status_fail {
  background: url('~@/assets/images/order_fail.png') center no-repeat;
}
.order_status_success {
  background: url('~@/assets/images/order_success.png') center no-repeat;
}

.order_status_waiting {
  background: url('~@/assets/images/order_wait.png') center no-repeat;
}
.status_tag() {
  border-radius: 16px;
  font-size: 26px;
  padding: 11px 17px;
}
.order_status_nopay {
  .status_tag();
  color: @color_price;
  background: @color_search_bg;
 
}
.order_status_payed {
  .status_tag();
  color: #999;
  background: #f8f8f8;
}
.order_status_unconfirm {
  .status_tag();
  color: #999;
  background: #f8f8f8;
}

.order_status_cancel {
  .status_tag();
  color: #dfd5d5;
  background: #f8f8f8;
}
iframe {
  border: 0;
}

// layout
.route_wrap {
  &-enter {
    position: absolute;
    width: 100vw;
    overflow: hidden;
    opacity: 0;
    transform: scale(1.1);
  }
  &-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: 300ms linear;
    transition-property: opacity, transform;
  }
  &-exit {
    position: absolute;
    width: 100vw;
    overflow: hidden;
    opacity: 0;
    transform: scale(1);
  }
  &-exit-active {
    opacity: 0;
  transform: scale(1.1);
  transition: 300ms linear;
  transition-property: opacity, transform;
  }
}

// 激活首页的menu
.rc-title-item-active {
  color: #fff;
  background: red;
}